from django.db import models

# Create your models here.
from db.base_model import BaseModel


class Comments(BaseModel):
    disabled = models.BooleanField(default=False, verbose_name="禁用评论")
    user = models.ForeignKey('users.Passport', on_delete=models.DO_NOTHING, verbose_name="用户ID")
    book = models.ForeignKey('books.Books', on_delete=models.CASCADE, verbose_name="书籍ID")
    content = models.CharField(max_length=1000, verbose_name="评论内容")

    class Meta:
        db_table = 's_comment_table'
